//
//  AppDelegate.swift
//  MKPhotoDetailDemo
//
//  Created by 劢克科技 on 2019/3/15.
//  Copyright © 2019 劢克科技. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        window = UIWindow(frame: UIScreen.main.bounds)
        window?.makeKeyAndVisible()
        window?.backgroundColor = UIColor.white

//        window?.rootViewController = ViewController()
        
        let layout = ImagesLayout()
        let controller = ImagesCollectionViewController(collectionViewLayout: layout)
        let nav = UINavigationController(rootViewController: controller)
        window?.rootViewController = nav
        
        return true
    }
}

